package Reunion::User::Model::Resource;

use strict;
use warnings;

my $RESOURCE = {
    'resource_id'      => 'resource_id',
    'module_name'      => 'module_name',
    'namespace_name'   => 'namespace_name',
    'controller_name'  => 'controller_name',
    'action_name'      => 'action_name',
    'create_time'      => 'create_time'
};


sub new {
    my $class = shift;
    my $dbi = shift;
    my $self  = {};
    $self->{'dbi'} = $dbi;
    bless $self, $class;
    return $self;
}

sub getResourceList {
    my $this = shift;
    my $result = $this->{'dbi'}->select('*', 'table'=>'resource');
    return $result;
}


1;